package com.yswl.yeeduo.ui.bean;

import java.io.Serializable;
import java.util.List;

import com.yswl.yeeduo.ui.utils.JsonUtil;

public class RankingBean implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1027289363422906725L;

//	{
//    "status": 0,
//    "msg": "",
//    "data": {
//        "totalShare": 0,//总分享次数
//        "top10": 10,//前十的次数
//        "top100": 20,//前100的次数
//        "activeList": [//正在进行中活动
//            {
//                "id": "55f38dfeb9567dc32c8b4575",//活动id
//                "title": "17号买手店——9月16日盛大开业，分享即可领取50元代金券！",
//                "rank": 135//排名
//            },
//            {
//                "id": "55fbc467b9567df04c8b45c5",
//                "title": "饭桌上不能带的十种人，带了掉自己身份！",
//                "rank": 54
//            },

	public String totalShare;
	public String top10;
	public String top100;
	public List<ActiveListItemBean> activeList;
	public List<ActiveListItemBean> finishList;

//	public static List<RankingBean> json2List(String objarray) {
//		List<RankingBean> listBean ;
//		Gson gson = new Gson();
//		java.lang.reflect.Type type = new com.google.gson.reflect.TypeToken<ArrayList<RankingBean>>() {
//		}.getType();
//		listBean = gson.fromJson(objarray, type);
//		return listBean;
//	}
	
	public static RankingBean getBean(String jsonString){
		 return (RankingBean) JsonUtil.jsonToBean(jsonString, RankingBean.class);
	 }
	public class ActiveListItemBean{
		public String id;
		public String title;
		public String rank;
	}
}
